package com.linwen.dataStructure.queue;

 
public class TestMyQueue {
	public static void main(String[] args) throws Exception {
		MyQueue mq = new MyQueue(4);
		System.out.println(mq.insert(1));
		System.out.println(mq.insert(2));
		System.out.println(mq.insert(3));
		//System.out.println(mq.insert(4));
		//System.out.println(mq.insert(5));
		System.out.println(mq.toString());
		
		System.out.println(mq.peek());
		
		System.out.println(mq.isFull());
		System.out.println(mq.isEmpty());
		System.out.println(mq.remove());
		System.out.println(mq.peek());
		System.out.println(mq.remove());
		System.out.println(mq.remove());
		//System.out.println(mq.remove());
		
		System.out.println(mq.peek());
		
	}
}
